package org.liuyunfeng.web;

import org.liuyunfeng.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2022-03-16 15:29
 **/
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserFeign feign;

    @GetMapping
    public Object user() {
        return feign.all();
    }
}

    